pipeline {
    agent any
    stages {
        stage('代码clone') {
            steps {
                echo "代码clone"
                checkout([$class: 'GitSCM', branches: [[name: "${Git_Version}"]], credentialsId: 'a6a3538c-cf2a-4055-914c-298ffe40d388', userRemoteConfigs: [[url: 'https://gitee.com/y2x/Test.git']]])
                // git branch: "${Git_Version}", credentialsId: 'a6a3538c-cf2a-4055-914c-298ffe40d388', url: 'https://gitee.com/y2x/Test.git'
                //git credentialsId: 'd8edf0ea-2457-4323-b522-b3b14a9f5a0b', url: 'http://192.168.1.200:8888/y2x/www.git'
                }
        }
        stage('代码测试') {
            steps {
                sh "echo 代码测试"
            }
        }
        stage('代码编译') {
            steps {
                sh "echo 代码编译"
            }
        }
        stage('服务停止') {
            steps {
                sh "echo 服务停止"
            }
        }
        stage('代码copy') {
            steps {
                sh "echo 代码copy"
            }
        }
        stage('服务启动') {
            steps {
                sh "echo 服务启动"
            }
        }
    }
}